package android_design_mode.chapter05_factory_method.audi_factory;

import android_design_mode.chapter05_factory_method.audi_factory.cars.AudiA6;
import android_design_mode.chapter05_factory_method.audi_factory.cars.AudiR8;

public class Client {

    public static void main(String[] args) {
        AudiFactory audiFactory = new AudiCarFactory();

        AudiA6 a6 = audiFactory.createAudiCar(AudiA6.class);
        a6.drive();
        a6.selfNavigation();

        AudiR8 r8 = audiFactory.createAudiCar(AudiR8.class);
        r8.drive();
        r8.selfNavigation();
    }
}
